package com.majorty.mb.dao;

import com.majorty.mb.controller.request.UserRequest;
import com.majorty.mb.dao.entity.UserDO;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhangshuai
 * @date 2019-09-21 22:49
 */
@Repository("userDao")
@Mapper
public interface UserDao {

    /**
     * 获取用户列表
     * @param request
     * @return
     */
    List<UserDO> getUserList(UserRequest request);

    /**
     * 获取用户总记录数
     * @return
     */
    Integer getUserListCount();

    /**
     * 根据主键获取用户信息
     * @param id
     * @return
     */
    UserDO selectById(Integer id);
}
